package com.naiterui.ehp.bs.ds.common.validator;

import com.naiterui.ehp.bp.support.exception.BaseExceptionCodes;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import org.apache.commons.lang3.StringUtils;

/**
 * 数据校验
 */
public abstract class Assert {

    public static void isBlank(String str, String message) throws BusinessException {
        if (StringUtils.isBlank(str)) {
            throw new BusinessException(BaseExceptionCodes.PARAM_ERROR, message);
        }
    }

}
